-
Notifications
You must be signed in to change notification settings - Fork 97
feat: add workload test case for external tests #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just want to nit the naming, "workload" is pretty broad, could we pick a clear name with a theme like "jobTemplate"? I'm really open to suggestions but i want to make sure this is sane/immediately readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I chose "workload" since I came from using tools like Sonobuoy. I'm not sure about "jobTemplate", but I'm open to other suggestions if folks really don't like referring to these types of jobs as workloads. I may have to close this PR and open a new one to change the branch name though.
f82a1e5 to
0d4d0f9
Compare
|
Finally coming back to this, but starting off with a simple rebase. |
0d4d0f9 to
c35d8a7
Compare
|
Addressed feedback from @ndbaker1 while adding support for neuron and nvidia accelerated jobs. |
mselim00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice feature, some minor comments
test/cases/workload/main_test.go
Outdated
| workloadTestCommand = flag.String("workloadTestCommand", "", "command for workload test") | ||
| workloadTestImage = flag.String("workloadTestImage", "", "image for workload test") | ||
| workloadTestName = flag.String("workloadTestName", "workload-test", "name for workload test") | ||
| workloadTestAccelerator = flag.String("workloadTestAccelerator", "", "accelerator for workload test: neuron, nvidia") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: is the workloadTest prefix redundant here? the caller would already be executing a workload.test binary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It kind of is, but I was just following the style of the existing neuron and nvidia tests that had neuronTestImage and nvidiaTestImage.
test/cases/workload/workload_test.go
Outdated
| if *workloadTestName == "" { | ||
| t.Fatal("workloadTestName must be set to run the test") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idt this needs to be required, it wouldn't really impact functionality and there is a default right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ends up being the name of the feature. While it's true we set a default, for these kinds of things I prefer a belt and suspenders type of approach.
c35d8a7 to
63fe663
Compare
|
Addressed feedback from @mselim00, such as:
|
Signed-off-by: Patrick J.P. Culp <jpculp@amazon.com>
63fe663 to
f19cae4
Compare
|
Addressed some additional feedback:
|
mselim00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Issue #, if available:
Description of changes:
Adds a simple workload test case that runs a command or script within a test container.
Sample output from running a multi-test with a Python-based "Hello world" type of container and a BASH-based NVIDIA smoke test container:
...
...
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.